Other Typealiases
The following typealiases are available globally.
-
/import Alamofire
Declaration
Swift
typealias FairPlayResult = RequestResult<Data, PlayerError>
-
Context for event tracking
Declaration
Swift
public typealias TrackingContext = [String: AnyObject]
-
A dictionary of parameters to apply to a
URLRequest
.Declaration
Swift
public typealias Parameters = [String: Any]
-
A closure executed when the
RequestRetrier
determines whether aRequest
should be retried or not.Declaration
Swift
public typealias RequestRetryCompletion = (_ shouldRetry: Bool, _ timeDelay: TimeInterval) -> Void
-
A dictionary of headers to apply to a
URLRequest
.Declaration
Swift
public typealias HTTPHeaders = [String: String]
-
A closure used to validate a request that takes a URL request, a URL response and data, and returns whether the request was valid.
Declaration
Swift
public typealias Validation = (URLRequest?, HTTPURLResponse, Data?) -> ValidationResult
-
A closure used to validate a request that takes a URL request, a URL response, a temporary URL and a destination URL, and returns whether the request was valid.
Declaration
Swift
public typealias Validation = (